<h1>添加教师信息</h1>

<% form_for(@teacher) do |f| %>
  <%= f.error_messages %>

  <p>
    <%= f.label :tname, "姓名：" %><br />
    <%= f.text_field :tname %>
  </p>
  <p>
    <%= f.label :tpassword, "密码：" %><br />
    <%= f.text_field :tpassword %>
  </p>
  <p>
    <%= f.label :tresume, "简介" %><br />
    <%= f.text_area :tresume %>
  </p>
  <p>
    <%= f.submit "提交" %>
    &nbsp;<%= link_to '返回', teachers_path %>
  </p>
<% end %>


